package com.itheima.entry;

import com.itheima.domain.Company;
import com.itheima.domain.Cheng;
import com.itheima.domain.Lead;

public class Test2 {
    public static void main(String[] args) {
        Company c1=new Cheng();
        c1.method();
        Company c2=new Lead("张三","13",123456,"12345");
        c2.method();

    }
}
